package dao

type LsSeckillEvent struct {
	Id                      int    `json:"id" gorm:"type:int;not null;primaryKey"`
	SeckillTimeId           int    `json:"seckillTimeId" gorm:"type:int;not null;comment:'秒杀时间id'"`
	SeckillEventsName       string `json:"seckillEventsName" gorm:"type:unique;varchar(50);not null;comment:'秒杀活动名称'"`
	SeckillEventsNote       string `json:"seckillEventsNote" gorm:"type:varchar(50);not null;comment:'秒杀活动备注'"`
	SeckillEventsQuta_Code  string `json:"seckillEventsQuta_Code" gorm:"type:'varchar(50);not null;comment:'秒杀活动限制类型'"`
	SeckillEventsQuotaCount int    `json:"seckillEventsQuotaCount" gorm:"type:int;not null;comment:'秒杀限制数量'"`
}
type LsSeckillSpecValue struct {
	Id               int     `json:"id" gorm:"type:int;not null;primaryKey"`
	SeckillEventsId  int     `json:"seckillEventsId" gorm:"type:int;not null;comment:'商品活动id'"`
	GoodSpecValueId  int     `json:"goodSpecValueId" gorm:"int;not null;comment:'秒杀商品规格id'"`
	SeckillPrice     float64 `json:"seckillPrice" gorm:"type:decimal(10,2);not null;comment:'秒杀价格"`
	SeckillGoodStock string  `json:"seckillGoodStock" gorm:"type:'int;not null;comment:'秒杀商品数量'"`
}
type LsSeckillTime struct {
	Id                 int    `json:"id" gorm:"type:int;not null;primaryKey"`
	StartTime          string `json:"startTime" gorm:"type:varchar(30);not null;comment:'开始时间'"`
	EndTime            string `json:"endTime" gorm:"type:varchar(50);not null;comment:'结束时间'"`
	SeckillEventStatus string `json:"seckillEventStatus" gorm:"type:varchar(20);not null;comment:'秒杀状态'"`
}
